package com.baogu.factoryjob.service;

import com.baogu.model.job.TerminalCollection;
import com.baogu.model.job.where.TerminalCollectionWhere;

public interface TerminalCollectionService {

    /**
     * 保存
     * @param terminalCollection
     * @return
     */
    int saveTerminalCollection(TerminalCollection terminalCollection);
    /**
     * 保存
     * @param terminalCollection
     * @return
     */
    int saveLastTerminalCollection(TerminalCollection terminalCollection);

    /**
     * 获取结果表里最新的数据
     * @param where
     * @return
     */
    TerminalCollection getNewTerminalCollectionData(TerminalCollectionWhere where);

    /**
     * 更新最新结果表
     * @param terminalCollection
     * @return
     */
    int updateLastData(TerminalCollection terminalCollection);

    /**
     * 插入最新结果表
     * @param terminalCollection
     * @return
     */
    int saveDateLastData(TerminalCollection terminalCollection);

    void delLast(TerminalCollectionWhere where);

    void del(TerminalCollectionWhere where);
}
